package com.sky.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OrderSubmitVO implements Serializable {

    //订单id
    @Min(0)
    private Long id;

    //订单号
    @NotBlank
    private String orderNumber;

    //订单金额
    @DecimalMin("0")
    private BigDecimal orderAmount;

    //下单时间
    @NotNull
    private LocalDateTime orderTime;
}
